package org.jsola.contract.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.vo.BaseVO;

import java.util.Date;
import java.util.List;

import static org.jsola.contract.example.ContractGroupExample.E_IS_SYSTEM;
import static org.jsola.contract.example.ContractGroupExample.E_NAME;
import static org.jsola.contract.example.ContractGroupExample.E_SORT;
import static org.jsola.contract.example.ContractGroupExample.E_SUBJECT_ID;
import static org.jsola.contract.example.ContractGroupExample.N_IS_SYSTEM;
import static org.jsola.contract.example.ContractGroupExample.N_NAME;
import static org.jsola.contract.example.ContractGroupExample.N_SORT;
import static org.jsola.contract.example.ContractGroupExample.N_SUBJECT_ID;
import static org.jsola.core.example.BaseExample.E_GMT_CREATE;
import static org.jsola.core.example.BaseExample.E_GMT_MODIFIED;
import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.N_GMT_CREATE;
import static org.jsola.core.example.BaseExample.N_GMT_MODIFIED;
import static org.jsola.core.example.BaseExample.N_ID;

/**
 * 合同类型分组
 *
 * @author JanusMix
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【合同类型分组】列表展示对象")
@Data
public class ContractGroupListVO extends BaseVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID)
    private Long id;

    @ApiModelProperty(notes = N_IS_SYSTEM, example = E_IS_SYSTEM)
    private Boolean isSystem;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    private String name;

    @ApiModelProperty(notes = N_SUBJECT_ID, example = E_SUBJECT_ID)
    private String subjectId;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Integer sort;

    @ApiModelProperty(notes = N_GMT_CREATE, example = E_GMT_CREATE)
    private Date gmtCreate;

    @ApiModelProperty(notes = N_GMT_MODIFIED, example = E_GMT_MODIFIED)
    private Date gmtModified;

    @ApiModelProperty(notes = "分组下分类个数", example = "1")
    private Integer categoryCount;

    @ApiModelProperty(notes = "分组下分类信息")
    private List<CategoryListVO> categoryListVOList;

}

